{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex.\n"
     ]
    }
   ],
   "source": [
    "import json\n",
    "golden_path = './data/small/origin_data/dev_data.json'\n",
    "predict_path = './out/pred_out'\n",
    "from config import opt\n",
    "from helpData import load_data\n",
    "from metrics import classification_report\n",
    "from pytorch_pretrained_bert import BertTokenizer"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_positions(data_list, map_str):\n",
    "    \"\"\"\n",
    "    返回实体在单词列表中的位置\n",
    "    sample:\n",
    "    >> input: ['球','星','姚'，'明', ...., ], '姚明'\n",
    "    >> return: (2, 3)\n",
    "    \"\"\"\n",
    "    map_str = map_str.strip().replace(' ', '$')\n",
    "    map_str = tokenizer_n.tokenize(map_str)\n",
    "    map_str = [i.replace('#', '') for i in map_str]\n",
    "    map_str = ''.join(map_str)\n",
    "    data_list = [i.replace('#', '') for i in data_list]\n",
    "    # 如果只由一个词组成\n",
    "    for word in data_list:\n",
    "        if map_str.lower() in word.lower():\n",
    "            start_id = end_id = data_list.index(word)\n",
    "            return start_id, end_id\n",
    "\n",
    "    start_id = -1\n",
    "    end_id = -1\n",
    "    for idx, word in enumerate(data_list):\n",
    "        if start_id != - 1 and end_id != -1:\n",
    "            return start_id, end_id\n",
    "        if map_str.startswith(word):\n",
    "            start_id = end_id = idx\n",
    "            while end_id+1 < len(data_list) and data_list[end_id+1] in map_str:\n",
    "                if \"\".join(data_list[start_id:end_id+2]) == map_str:\n",
    "                    # print(\"\".join(data_list[start_id:end_id+3]))\n",
    "                    return start_id, end_id+1\n",
    "                end_id += 1\n",
    "            find_str = \"\"\n",
    "            for idx in range(start_id, end_id+1):\n",
    "                find_str = find_str + data_list[idx]\n",
    "            if find_str != map_str:\n",
    "                pre_extend = (data_list[start_id-1] if start_id > 0 else \"\") + find_str\n",
    "                last_extend = find_str + (data_list[end_id+1] if end_id < len(data_list)-1 else \"\")\n",
    "                pre_last_extend = (data_list[start_id-1] if start_id > 0 else \"\")+ find_str + (data_list[end_id+1] if end_id < len(data_list)-1 else \"\")\n",
    "                if map_str in pre_extend:\n",
    "                    start_id -= 1\n",
    "                elif map_str in last_extend:\n",
    "                    end_id += 1\n",
    "                elif map_str in pre_last_extend:\n",
    "                    start_id -= 1\n",
    "                    end_id += 1\n",
    "                else:\n",
    "                    start_id = -1\n",
    "                    end_id = -1\n",
    "    if start_id != -1 and end_id != -1:\n",
    "        return start_id, end_id\n",
    "    for idx, word in enumerate(data_list[:-1]):\n",
    "        if map_str in (word+data_list[idx+1]):\n",
    "            return idx,idx+1\n",
    "    # print(\"word_list{}  map_str {} loss\".format(data_list, map_str))\n",
    "    return start_id, end_id"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "def load_data(path):\n",
    "    '''\n",
    "    加载数据，返回json数组.\n",
    "    '''\n",
    "    data = []\n",
    "    data_lines = open(path, encoding='utf-8').readlines()\n",
    "    for line in data_lines:\n",
    "        data.append(json.loads(line))\n",
    "    return data\n",
    "predict_data = load_data(predict_path)\n",
    "golden_data = load_data(golden_path)[:len(predict_data)]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_relation_num(datas):\n",
    "    r2num = {}\n",
    "    for data in datas:\n",
    "        spo_lists = data['spo_list']\n",
    "        for spo in spo_lists:\n",
    "            r = spo['predicate']\n",
    "            if not r in r2num.keys():\n",
    "                r2num[r] = 1\n",
    "            else:\n",
    "                r2num[r] += 1\n",
    "    return sorted(r2num.items(), key=lambda d:d[0])\n",
    "    return r2num"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_text2spo(datas):\n",
    "    text2spo = {}\n",
    "    for data in datas:\n",
    "        text2spo[data['text']] = data['spo_list']\n",
    "    return text2spo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_right_relaiton_num(golden_data, predict_data):\n",
    "    golden_data = get_text2spo(golden_data)\n",
    "    predict_data = get_text2spo(predict_data)\n",
    "    print(len(golden_data))\n",
    "    rightr2num = {}\n",
    "    for text in golden_data.keys():\n",
    "        true_spos = golden_data[text]\n",
    "        pred_spos = predict_data.get(text, [])\n",
    "        all_true_predict = [predict['predicate'] for predict in true_spos]\n",
    "        for pred in pred_spos:\n",
    "            if pred['predicate'] in all_true_predict:\n",
    "                if not pred['predicate'] in rightr2num.keys():\n",
    "                    rightr2num[pred['predicate']] = 1\n",
    "                else:\n",
    "                    rightr2num[pred['predicate']] += 1\n",
    "    return sorted(rightr2num.items(), key=lambda d:d[0])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "21629\n"
     ]
    }
   ],
   "source": [
    "right_rnum = get_right_relaiton_num(golden_data, predict_data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "gloden relation num: [('丈夫', 680), ('上映时间', 463), ('专业代码', 3), ('主持人', 208), ('主演', 7411), ('主角', 39), ('人口数量', 45), ('作曲', 1123), ('作者', 4390), ('作词', 1119), ('修业年限', 2), ('出品公司', 851), ('出版社', 2270), ('出生地', 2370), ('出生日期', 2894), ('创始人', 81), ('制片人', 144), ('占地面积', 61), ('号', 197), ('嘉宾', 171), ('国籍', 1654), ('妻子', 680), ('字', 339), ('官方语言', 15), ('导演', 2697), ('总部地点', 310), ('成立日期', 1606), ('所在城市', 77), ('所属专辑', 1287), ('改编自', 71), ('朝代', 419), ('歌手', 3085), ('母亲', 425), ('毕业院校', 1433), ('民族', 1436), ('气候', 102), ('注册资本', 63), ('海拔', 43), ('父亲', 609), ('目', 1271), ('祖籍', 181), ('简称', 138), ('编剧', 866), ('董事长', 50), ('身高', 392), ('连载网站', 1657), ('邮政编码', 4), ('面积', 79), ('首都', 47)] \n",
      "\n",
      "predict relation num: [('丈夫', 942), ('上映时间', 378), ('专业代码', 1), ('主持人', 209), ('主演', 9253), ('主角', 30), ('人口数量', 49), ('作曲', 936), ('作者', 4737), ('作词', 1021), ('修业年限', 1), ('出品公司', 966), ('出版社', 2463), ('出生地', 2460), ('出生日期', 3079), ('创始人', 90), ('制片人', 167), ('占地面积', 65), ('号', 260), ('嘉宾', 284), ('国籍', 1783), ('妻子', 940), ('字', 415), ('官方语言', 14), ('导演', 2947), ('总部地点', 204), ('成立日期', 1651), ('所在城市', 81), ('所属专辑', 1396), ('改编自', 134), ('朝代', 479), ('歌手', 3257), ('母亲', 612), ('毕业院校', 1579), ('民族', 1532), ('气候', 103), ('注册资本', 78), ('海拔', 47), ('父亲', 875), ('目', 1137), ('祖籍', 212), ('简称', 127), ('编剧', 830), ('董事长', 58), ('身高', 426), ('连载网站', 1769), ('邮政编码', 4), ('面积', 84), ('首都', 48)] \n",
      "\n",
      "predict right num [('丈夫', 745), ('上映时间', 274), ('专业代码', 1), ('主持人', 200), ('主演', 8651), ('主角', 19), ('人口数量', 43), ('作曲', 812), ('作者', 4363), ('作词', 931), ('修业年限', 1), ('出品公司', 755), ('出版社', 2296), ('出生地', 2191), ('出生日期', 2865), ('创始人', 63), ('制片人', 110), ('占地面积', 54), ('号', 195), ('嘉宾', 198), ('国籍', 1258), ('妻子', 740), ('字', 314), ('官方语言', 14), ('导演', 2784), ('总部地点', 157), ('成立日期', 1577), ('所在城市', 70), ('所属专辑', 1262), ('改编自', 120), ('朝代', 403), ('歌手', 2987), ('母亲', 482), ('毕业院校', 1343), ('民族', 1352), ('气候', 101), ('注册资本', 49), ('海拔', 45), ('父亲', 664), ('目', 1137), ('祖籍', 163), ('简称', 112), ('编剧', 697), ('董事长', 41), ('身高', 386), ('连载网站', 1623), ('邮政编码', 4), ('面积', 73), ('首都', 44)]\n"
     ]
    }
   ],
   "source": [
    "golden_rnum = get_relation_num(golden_data)\n",
    "predict_rnum = get_relation_num(predict_data)\n",
    "print(\"gloden relation num: {} \\n\".format(golden_rnum))\n",
    "print(\"predict relation num: {} \\n\".format(predict_rnum))\n",
    "print(\"predict right num {}\".format(right_rnum))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_case_ans(golden_data, predict_data):\n",
    "    predict_data = get_text2spo(predict_data)\n",
    "    golden_data = get_text2spo(golden_data)\n",
    "    case = {}\n",
    "    for text in golden_data.keys():\n",
    "        true_spos = golden_data[text]\n",
    "        for true in true_spos:\n",
    "            true['object_type'], true['subject_type'] = None, None\n",
    "            true['object'], true['subject'] = true['object'].lower(), true['subject'].lower()\n",
    "            \n",
    "        pred_spos = predict_data.get(text, [])\n",
    "        for pred in pred_spos:\n",
    "            pred['object_type'], pred['subject_type'] = None, None\n",
    "        unit = {'right':[], \"loss\":[], 'wrong':[]}\n",
    "        for true in true_spos:\n",
    "            if not true in pred_spos:\n",
    "                unit['loss'].append(true)\n",
    "            if true in pred_spos:\n",
    "                unit['right'].append(true)\n",
    "        for pred in pred_spos:\n",
    "            if not pred in true_spos:\n",
    "                unit['wrong'].append(pred)\n",
    "        if len(unit['loss']) == 0 and len(unit['wrong']) == 0:\n",
    "            continue\n",
    "        case[text] = unit\n",
    "    return case"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "case = get_case_ans(golden_data, predict_data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "tokenizer_n = BertTokenizer.from_pretrained(opt.bert_vocab_unk, do_lower_case=True)\n",
    "tokenizer_o = BertTokenizer.from_pretrained(opt.bert_vocab_dir, do_lower_case=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "wrong_case = []\n",
    "for k in case.keys():\n",
    "    c = case[k]\n",
    "    if len(c['loss']) != 0 or len(c['wrong']) != 0:\n",
    "        wrong_case.append((k, c))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('《别让我再见到你》是1999年陈洁仪演唱的一首歌曲，所属专辑是《炫耀》',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '陈洁仪',\n",
       "     'subject': '别让我再见到你'},\n",
       "    {'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '炫耀',\n",
       "     'subject': '别让我再见到你'}],\n",
       "   'loss': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '陈洁仪',\n",
       "     'subject': '炫耀'}],\n",
       "   'wrong': []}),\n",
       " ('长城汽车是长城汽车股份有限公司的简称，长城汽车的前身是长城工业公司，是一家集体所有制企业，成立于1984年，公司总部位于河北省保定市',\n",
       "  {'right': [{'predicate': '成立日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1984年',\n",
       "     'subject': '长城汽车'}],\n",
       "   'loss': [{'predicate': '总部地点',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '保定市',\n",
       "     'subject': '长城汽车'}],\n",
       "   'wrong': [{'object': '河北省保定市',\n",
       "     'subject': '长城汽车',\n",
       "     'predicate': '总部地点',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《节能省地型住宅和公共建筑标准规范汇编（上下）》是2005年中国建筑工业出版社出版的图书，作者是建设部标准定额研究所',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国建筑工业',\n",
       "     'subject': '节能省地型住宅和公共建筑标准规范汇编（上下）'},\n",
       "    {'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '建设部标准定额研',\n",
       "     'subject': '节能省地型住宅和公共建筑标准规范汇编（上下）'}],\n",
       "   'wrong': [{'object': '中国建筑工业出版社',\n",
       "     'subject': '节能省地型住宅和公共建筑标准规范汇编（上下）',\n",
       "     'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '建设部标准定额研究所',\n",
       "     'subject': '节能省地型住宅和公共建筑标准规范汇编（上下）',\n",
       "     'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('弗朗西斯科·布鲁，男，1885-04-12出生在马德里(西班牙)，场上位置教练',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '马德里',\n",
       "     'subject': '弗朗西斯科·布鲁'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1885-04-12',\n",
       "     'subject': '弗朗西斯科·布鲁'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '西班牙',\n",
       "     'subject': '弗朗西斯科·布鲁',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('元朝开国皇帝、皇后厚待南宋末代皇室的故事，和西晋末年刘聪以“青衣侑酒”、“洗爵张盖”侮辱西晋怀、愍二帝形成很大反差',\n",
       "  {'right': [{'predicate': '朝代',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '西晋',\n",
       "     'subject': '刘聪'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '南宋',\n",
       "     'subject': '刘聪',\n",
       "     'predicate': '朝代',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《妊娠分娩育养》是2009年电脑报电子音像出版社出版的图书，作者是中国早教网专家组',\n",
       "  {'right': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国早教网专家组',\n",
       "     'subject': '妊娠分娩育养'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '电脑报电子音像出版社',\n",
       "     'subject': '妊娠分娩育养',\n",
       "     'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('覃华军，男，1971年6月出生，壮族，籍贯广西河池，出生地广西河池，1999年7月加入中国共产党，1991年7月参加工作，中央党校在职大学学历',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '广西河池',\n",
       "     'subject': '覃华军'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1971年6月',\n",
       "     'subject': '覃华军'},\n",
       "    {'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '壮族',\n",
       "     'subject': '覃华军'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '中国',\n",
       "     'subject': '覃华军',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('邱型柏同志生于1953年12月，河南新县人，汉族，1969年12月参军，1971年12月加入中国共产党',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '河南新县',\n",
       "     'subject': '邱型柏'},\n",
       "    {'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国',\n",
       "     'subject': '邱型柏'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1953年12月',\n",
       "     'subject': '邱型柏'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '汉族',\n",
       "     'subject': '邱型柏',\n",
       "     'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('9气候市中区属中亚热带湿润季风气候区',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '气候',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中亚热带湿润季风气候',\n",
       "     'subject': '市中区'}],\n",
       "   'wrong': [{'object': '亚热带湿润季风气候',\n",
       "     'subject': '市中区',\n",
       "     'predicate': '气候',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('白尾鸏太平洋亚种是一种鸏属，鸏科，鹈形目动物，主要分布在西太平洋',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '鹈形目',\n",
       "     'subject': '白尾鸏太平洋亚种'}],\n",
       "   'wrong': [{'object': '鹈形目',\n",
       "     'subject': '白尾[UNK]太平洋亚种',\n",
       "     'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('随后在朱丹，何晟铭主演的《爱的妇产科》里扮演怀孕少女邓晓雨在于正版《神雕侠侣》里扮演绝情谷侍女柔儿真正令菅纫姿成名是跟钟汉良，唐嫣主演电视剧《何以笙箫默》，她在戏里扮演单恋哥哥何以琛的何以玫，凭借精湛的演技，她将何以玫两种不同情绪演绎的淋漓尽致，获得万千网友点赞，而她的人气也急速上升',\n",
       "  {'right': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '唐嫣',\n",
       "     'subject': '何以笙箫默'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '钟汉良',\n",
       "     'subject': '何以笙箫默'}],\n",
       "   'loss': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '何晟铭',\n",
       "     'subject': '爱的妇产科'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '朱丹',\n",
       "     'subject': '爱的妇产科'}],\n",
       "   'wrong': [{'object': '朱丹',\n",
       "     'subject': '爱的',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '朱丹',\n",
       "     'subject': '神雕侠侣',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '朱丹',\n",
       "     'subject': '何以笙箫默',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '何晟铭',\n",
       "     'subject': '爱的',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '何晟铭',\n",
       "     'subject': '何以笙箫默',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '钟汉良',\n",
       "     'subject': '爱的',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '钟汉良',\n",
       "     'subject': '神雕侠侣',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '唐嫣',\n",
       "     'subject': '爱的',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '唐嫣',\n",
       "     'subject': '神雕侠侣',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《并行端口技术》是2005年国防工业出版社出版的图书，作者是李肇庆、韩涛',\n",
       "  {'right': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '李肇庆',\n",
       "     'subject': '并行端口技术'},\n",
       "    {'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '国防工业出版社',\n",
       "     'subject': '并行端口技术'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '韩涛',\n",
       "     'subject': '并行端口技术',\n",
       "     'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('姓\\u3000名：孙屹  性\\u3000别：男  民\\u3000族：汉族  籍\\u3000贯：山东荷泽  出生年月：1883年  牺牲日期：1913年',\n",
       "  {'right': [{'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汉族',\n",
       "     'subject': '孙屹'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '山东荷泽',\n",
       "     'subject': '孙屹',\n",
       "     'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '1883年',\n",
       "     'subject': '孙屹',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('石勒（274年―333年8月17日），字世龙，初名石勹背，小字匐勒，羯族，上党武乡（今山西榆社）人',\n",
       "  {'right': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '274年',\n",
       "     'subject': '石勒'},\n",
       "    {'predicate': '字',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '世龙',\n",
       "     'subject': '石勒'},\n",
       "    {'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '羯族',\n",
       "     'subject': '石勒'},\n",
       "    {'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '上党武乡',\n",
       "     'subject': '石勒'}],\n",
       "   'loss': [{'predicate': '字',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '匐勒',\n",
       "     'subject': '石勒'}],\n",
       "   'wrong': []}),\n",
       " ('《人迹和自然》主要收录了赵丽宏1游历祖国山川时的感悟文字',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '赵丽宏',\n",
       "     'subject': '人迹和自然'}],\n",
       "   'wrong': [{'object': '赵丽宏',\n",
       "     'subject': '人迹和自然',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('该剧由Minnie Driver主演，故事发生在一艘前往北冰洋进行考察的深海潜艇（俄耳甫斯号）上',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': 'driver',\n",
       "     'subject': '深海'}],\n",
       "   'wrong': [{'object': 'minnie',\n",
       "     'subject': '俄耳甫斯号',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': 'driver',\n",
       "     'subject': '俄耳甫斯号',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('创作背景六哲与袁惜君合唱的《一半的一半》，讲述了大都市中人们共同困扰的问题， 快节奏的生活中，两个人在一起，都很想知道自己在对方心里的位置是多少',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '六哲',\n",
       "     'subject': '一半的一半'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '袁惜君',\n",
       "     'subject': '一半的一半',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《爱情旅程》是阿沁、陈淑秋作词，阿沁作曲，张韶涵演唱的歌曲，收录在张韶涵2006年发行的专辑《潘朵拉》中',\n",
       "  {'right': [{'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '潘朵拉',\n",
       "     'subject': '爱情旅程'},\n",
       "    {'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '张韶涵',\n",
       "     'subject': '爱情旅程'},\n",
       "    {'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '阿沁',\n",
       "     'subject': '爱情旅程'},\n",
       "    {'predicate': '作词',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '陈淑秋',\n",
       "     'subject': '爱情旅程'}],\n",
       "   'loss': [{'predicate': '作词',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '阿沁',\n",
       "     'subject': '爱情旅程'}],\n",
       "   'wrong': []}),\n",
       " ('贝纳蒂亚出生于1987年4月17日，司职中后卫，身高1米89，他出身法国著名的克莱枫丹训练营，2010年7月登陆意甲加盟乌迪内斯，效力3年联赛出场80次打进6球，2013年7月他以1350万欧元的转会费加盟罗马',\n",
       "  {'right': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1987年4月17日',\n",
       "     'subject': '贝纳蒂亚'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '1米89',\n",
       "     'subject': '贝纳蒂亚',\n",
       "     'predicate': '身高',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《天无极》是天澹星稀创作的网络小说，发表于起点网',\n",
       "  {'right': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '天澹星稀',\n",
       "     'subject': '天无极'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '起点网',\n",
       "     'subject': '天无极',\n",
       "     'predicate': '连载网站',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('常勇钢，别署赏兰斋主· 1957年生于河北大名中国书法家协会全国第二届草书艺术大展组委会委员中国楹联学会会员河北省美术家协会常务理事',\n",
       "  {'right': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1957年',\n",
       "     'subject': '常勇钢'},\n",
       "    {'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '河北大名',\n",
       "     'subject': '常勇钢'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '中国',\n",
       "     'subject': '常勇钢',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " (\"兰博基尼 \\u3000\\u3000兰博基尼是全球顶级跑车制造商及欧洲奢侈品标志之一，公司坐落于意大利圣亚加塔·波隆尼（Sant'Agata Bolognese），由费鲁吉欧·兰博基尼在1963年创立\",\n",
       "  {'right': [{'predicate': '创始人',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '费鲁吉欧·兰博基尼',\n",
       "     'subject': '兰博基尼'},\n",
       "    {'predicate': '成立日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1963年',\n",
       "     'subject': '兰博基尼'}],\n",
       "   'loss': [{'predicate': '成立日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1963',\n",
       "     'subject': '兰博基尼'}],\n",
       "   'wrong': [{'object': '意大利圣亚加塔·',\n",
       "     'subject': '兰博基尼',\n",
       "     'predicate': '总部地点',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '意大利圣亚加塔·',\n",
       "     'subject': '隆尼',\n",
       "     'predicate': '总部地点',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '隆尼',\n",
       "     'subject': '兰博基尼',\n",
       "     'predicate': '总部地点',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('个人简介陆初觉(1890—1945)，名志棠，字松生，号初觉，嘉兴人',\n",
       "  {'right': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1890',\n",
       "     'subject': '陆初觉'},\n",
       "    {'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '嘉兴',\n",
       "     'subject': '陆初觉'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '松生',\n",
       "     'subject': '陆初觉',\n",
       "     'predicate': '字',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('通吃网即原西南食品城网，创立于2009年6月，于2010年3月正式更名为通吃网',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '成立日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '于2009年6月',\n",
       "     'subject': '通吃网'}],\n",
       "   'wrong': [{'object': '2009年6月',\n",
       "     'subject': '通吃网',\n",
       "     'predicate': '成立日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('2011年8月13日，《变形金刚3》在中国电影市场上映第24天，影片票房突破10亿元关口，成为中国大陆继《阿凡达》之后第二部跨入10亿元俱乐部的进口片',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '2011年',\n",
       "     'subject': '变形金刚3'}],\n",
       "   'wrong': [{'object': '2011年8月13日',\n",
       "     'subject': '变形金刚3',\n",
       "     'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('比如《你潇洒我漂亮》，这首歌的原唱是一位马来西亚歌手成凤，不过成凤没有唱红，是韩宝仪把这首歌在大陆唱的爆红，韩宝仪之后大陆歌星还有20多个翻唱版本',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '成凤',\n",
       "     'subject': '你潇洒我漂亮'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '韩宝仪',\n",
       "     'subject': '你潇洒我漂亮',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('王新朝喜，原名王岑静，25岁（2013年），女篮队员，身高达到1.89米，2003年赴日本留学，并于2013年8月加入日本籍1，2013年10月9日，在东亚运动会女篮首日比赛中，日本女篮中锋王新朝喜在首节登场，她不是别人，正是出生于天津的原中国籍选手王岑静',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '天津',\n",
       "     'subject': '王新朝喜'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '1.89米',\n",
       "     'subject': '王新朝喜',\n",
       "     'predicate': '身高',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '1.89米',\n",
       "     'subject': '王岑静',\n",
       "     'predicate': '身高',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '天津',\n",
       "     'subject': '王岑静',\n",
       "     'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '中国',\n",
       "     'subject': '王新朝喜',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '中国',\n",
       "     'subject': '王岑静',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('影片《一个购物狂的自白》由P·J·霍根执导影片，根据英国畅销书作家索菲·金塞拉的“购物狂”系列改编而成',\n",
       "  {'right': [{'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': 'p·j·霍根',\n",
       "     'subject': '一个购物狂的自白'}],\n",
       "   'loss': [{'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '英国',\n",
       "     'subject': '金塞拉'}],\n",
       "   'wrong': []}),\n",
       " ('Justin Zhou，中文名周城宇，国际珠宝鉴定师，FANCYCD大中华区总经理、品牌合伙人，毕业于英国顶尖大学--伦敦大学政治经济商学院',\n",
       "  {'right': [{'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '伦敦大学',\n",
       "     'subject': '周城宇'}],\n",
       "   'loss': [{'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '伦敦大学',\n",
       "     'subject': 'justin zhou'}],\n",
       "   'wrong': [{'object': '伦敦大学',\n",
       "     'subject': 'justin ',\n",
       "     'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '伦敦大学',\n",
       "     'subject': 'ou',\n",
       "     'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('灵希，真名全颖，生日：1月29日，水瓶座，血型：A型，厦门大学经济学学士，上海，从事财务会计工作，2006年开始从事小说创作，写作风格多变，自2010年开始全面创作转型，青春文以《伊甸园》为代表，武侠言情以《绯雨倾城》为代表，民国文以民国军阀三部曲，《倾城之恋》、《玉簟秋》、《芙蓉锦》为代表',\n",
       "  {'right': [{'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '厦门大学',\n",
       "     'subject': '灵希'}],\n",
       "   'loss': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '灵希',\n",
       "     'subject': '玉簟秋'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1月29日',\n",
       "     'subject': '灵希'},\n",
       "    {'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '灵希',\n",
       "     'subject': '绯雨倾城'}],\n",
       "   'wrong': [{'object': '灵希',\n",
       "     'subject': '绯',\n",
       "     'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '月29日',\n",
       "     'subject': '灵希',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('李海，男，1983年毕业于北京航空学院制造工程系航空制造工程专业，获工学学士学位，2002年毕业于中欧国际工商学院，获工商管理硕士学位',\n",
       "  {'right': [{'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '北京航空学院',\n",
       "     'subject': '李海'}],\n",
       "   'loss': [{'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中欧国际工商学院',\n",
       "     'subject': '李海'}],\n",
       "   'wrong': []}),\n",
       " ('《北平无战事》改编自刘和平同名小说，该剧由孔笙、李雪导演，刘和平编剧，刘烨、陈宝国等人主演',\n",
       "  {'right': [{'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '李雪',\n",
       "     'subject': '北平无战事'},\n",
       "    {'predicate': '编剧',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '刘和平',\n",
       "     'subject': '北平无战事'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '刘烨',\n",
       "     'subject': '北平无战事'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '陈宝国',\n",
       "     'subject': '北平无战事'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '孔笙',\n",
       "     'subject': '北平无战事',\n",
       "     'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('武汉中人检测技术有限公司是2013年成立的一家环境检测公司，公司位于湖北武汉市彭刘杨路天合大厦6楼',\n",
       "  {'right': [{'predicate': '成立日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '2013年',\n",
       "     'subject': '武汉中人检测技术有限公司'}],\n",
       "   'loss': [{'predicate': '总部地点',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '武汉',\n",
       "     'subject': '武汉中人检测技术有限公司'}],\n",
       "   'wrong': []}),\n",
       " ('人物生平黄松(1887～1982年)，女，字渔仙，闺名安治，婚后从夫姓黎，署名黎黄松，晚年自号温陵老人，泉州东街元妙观口人，清光绪十三年(1887年)九月生',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1887年',\n",
       "     'subject': '黄松'}],\n",
       "   'wrong': [{'object': '1887',\n",
       "     'subject': '黄松',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '温陵老人',\n",
       "     'subject': '黄松',\n",
       "     'predicate': '号',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '泉',\n",
       "     'subject': '黄松',\n",
       "     'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '1887',\n",
       "     'subject': '黄松',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('丁业现，男，汉族，1960年10月生，山东阳谷人，1990年8月加入中国共产党，1978年1月参加工作，博士研究生学历，高级工程师',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '山东阳谷',\n",
       "     'subject': '丁业现'},\n",
       "    {'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汉族',\n",
       "     'subject': '丁业现'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1960年10月',\n",
       "     'subject': '丁业现'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '中国',\n",
       "     'subject': '丁业现',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('裂唇鱼（Labroides dimidiatus）又称医生鱼，飘飘，为鲈形目，隆头鱼科，裂唇鱼属一种热带地区近岸珊瑚礁海域生活的鱼类',\n",
       "  {'right': [{'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '鲈形目',\n",
       "     'subject': '裂唇鱼'}],\n",
       "   'loss': [{'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '鲈形目',\n",
       "     'subject': '飘飘'}],\n",
       "   'wrong': [{'object': '鲈形目',\n",
       "     'subject': '鱼',\n",
       "     'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('李湘肥的流油，肚子圆鼓鼓王诗龄要当姐姐了吗，胖成俩个郑爽了',\n",
       "  {'right': [{'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '李湘',\n",
       "     'subject': '王诗龄'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '李湘',\n",
       "     'subject': '爽',\n",
       "     'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '王诗龄',\n",
       "     'subject': '爽',\n",
       "     'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '爽',\n",
       "     'subject': '王诗龄',\n",
       "     'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('姓  名：邓清  性  别：女民  族：汉族籍  贯：河北大城出生年月：1920年',\n",
       "  {'right': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1920年',\n",
       "     'subject': '邓清'},\n",
       "    {'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汉族',\n",
       "     'subject': '邓清'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '河北',\n",
       "     'subject': '邓清',\n",
       "     'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '城',\n",
       "     'subject': '邓清',\n",
       "     'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('2003年作品赴法国参加“中法文化交流：锦绣江苏——中国工艺美术精品展”，同年在扬州成功举办“方学斌金属工艺展”，',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国',\n",
       "     'subject': '方学斌'}],\n",
       "   'wrong': [{'object': '国',\n",
       "     'subject': '方学斌',\n",
       "     'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('赖启卓：英文名Lai Kai Cheuk，中国人，汉族，出生于1977年7月5日中国香港，身高183CM，体重70KG',\n",
       "  {'right': [{'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国',\n",
       "     'subject': '赖启卓'},\n",
       "    {'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国香港',\n",
       "     'subject': '赖启卓'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1977年7月5日',\n",
       "     'subject': '赖启卓'},\n",
       "    {'predicate': '身高',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '183cm',\n",
       "     'subject': '赖启卓'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '汉族',\n",
       "     'subject': '赖启卓',\n",
       "     'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《新鲁冰花》是由陈坤厚执导，陈至恺、周幼婷与吴浚恺主演的剧情电影',\n",
       "  {'right': [{'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '陈坤厚',\n",
       "     'subject': '新鲁冰花'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '陈至恺',\n",
       "     'subject': '新鲁冰花',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '周幼婷',\n",
       "     'subject': '新鲁冰花',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '吴浚恺',\n",
       "     'subject': '新鲁冰花',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('履历杨栋，男，汉族，1972年5月出生，甘肃临洮人， 1995年7月参加工作，党员，1993年10月加入中国共产党，学历本科，现任珠海市斗门区国家税务局党组成员、纪检组长',\n",
       "  {'right': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1972年5月',\n",
       "     'subject': '杨栋'},\n",
       "    {'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '甘肃临洮',\n",
       "     'subject': '杨栋'},\n",
       "    {'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汉族',\n",
       "     'subject': '杨栋'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '中',\n",
       "     'subject': '杨栋',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('杨丞琳出演了很多青春偶像剧，如《流星花园》、《暧昧》、《恶魔在身边》、《海派甜心》等等',\n",
       "  {'right': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '杨丞琳',\n",
       "     'subject': '恶魔在身边'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '杨丞琳',\n",
       "     'subject': '流星花园'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '杨丞琳',\n",
       "     'subject': '暧昧',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '杨丞琳',\n",
       "     'subject': '海派甜心',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《谁偷了谁的忧伤》是晋江文学城连载的一本小说，作者是玲小旭',\n",
       "  {'right': [{'predicate': '连载网站',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '晋江文学城',\n",
       "     'subject': '谁偷了谁的忧伤'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '玲小旭',\n",
       "     'subject': '谁偷了谁的忧伤',\n",
       "     'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《你是哪里人》是蒋旭执导的一部爱情喜剧片，由苗皓钧、潘阳、唐文龙、李斯羽、姚笛、张俪等领衔主演，该片于2011年5月27日在中国上映',\n",
       "  {'right': [{'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '2011年5月27日',\n",
       "     'subject': '你是哪里人'},\n",
       "    {'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '蒋旭',\n",
       "     'subject': '你是哪里人'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '苗皓钧',\n",
       "     'subject': '你是哪里人',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '潘阳',\n",
       "     'subject': '你是哪里人',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '唐文龙',\n",
       "     'subject': '你是哪里人',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '李斯羽',\n",
       "     'subject': '你是哪里人',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '姚笛',\n",
       "     'subject': '你是哪里人',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '张俪',\n",
       "     'subject': '你是哪里人',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《食物相宜相克2000种》是2006年吉林科技出版社出版的图书，作者是张婷娜',\n",
       "  {'right': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '张婷娜',\n",
       "     'subject': '食物相宜相克2000种'}],\n",
       "   'loss': [{'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '吉林科技',\n",
       "     'subject': '食物相宜相克2000种'}],\n",
       "   'wrong': [{'object': '吉林科技出版社',\n",
       "     'subject': '食物相宜相克2000种',\n",
       "     'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《不独立宣言》是吴克群的音乐作品，周耀辉作曲，收录在《一个人的Tomorrow》专辑中',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '吴克群',\n",
       "     'subject': '不独立宣言'},\n",
       "    {'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '一个人的tomorrow',\n",
       "     'subject': '不独立宣言'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '周耀辉',\n",
       "     'subject': '不独立宣言',\n",
       "     'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('基本信息威塞克斯伯爵，即爱德华王子（Prince Edward, Earl of Wessex，1964年3月10日－ ），全名爱德华·安东尼·理查德·路易斯（Edward Antony Richard Louis），是英国女王伊丽莎白二世的三子',\n",
       "  {'right': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1964年3月10日',\n",
       "     'subject': '爱德华王子'},\n",
       "    {'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '伊丽莎白二世',\n",
       "     'subject': '爱德华王子'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '1964年3月10日',\n",
       "     'subject': '威塞克斯',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '英国',\n",
       "     'subject': '威塞克斯',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '英国',\n",
       "     'subject': '爱德华王子',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '英国',\n",
       "     'subject': '伊丽莎白二世',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '伊丽莎白二世',\n",
       "     'subject': '威塞克斯',\n",
       "     'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('列显伦生于香港的欧亚混血家庭，父列佐翰(John Litton)，母罗德贞，为罗文锦爵士胞妹',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '香港',\n",
       "     'subject': '列显伦'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '罗德贞',\n",
       "     'subject': '列显伦',\n",
       "     'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('2.帝王业开机帝王业更名为《帝凰业》，已经正式开机了，主演阵容：王儇-章子怡 萧綦-周一围 子澹-黄恺杰（赵雅芝儿子） 宋怀恩-林家川 胡瑶-刘芸 3.今天刷了一遍刘昊然的微博 他真的没有和欧阳娜娜在一起过',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '赵雅芝',\n",
       "     'subject': '黄恺杰'}],\n",
       "   'wrong': [{'object': '章子怡',\n",
       "     'subject': '帝王业',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '黄',\n",
       "     'subject': '帝王业',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '赵雅芝',\n",
       "     'subject': '帝王业',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《大开色界》是由林若宁作词，Jerald（陈哲庐）作曲，刘美君、林海峰演唱的一首歌曲，收录于专辑《大开色界》中，发行于2008年04月11日',\n",
       "  {'right': [{'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': 'jerald',\n",
       "     'subject': '大开色界'},\n",
       "    {'predicate': '作词',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '林若宁',\n",
       "     'subject': '大开色界'},\n",
       "    {'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '林海峰',\n",
       "     'subject': '大开色界'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '刘美君',\n",
       "     'subject': '大开色界',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《玩泥沙》是香港歌手关智斌演唱的粤语歌曲，收录于关智斌2006年的个人音乐专辑《寻找美惠》当中',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '关智斌',\n",
       "     'subject': '玩泥沙'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '寻找美惠',\n",
       "     'subject': '玩泥沙',\n",
       "     'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('赵锦堂，男,汉族,1965年2月6日出生,黑龙江哈尔滨市阿城区人,1990年9月加入中国共产党,1985年8月参加工作,大学学历,现任阿城经济开发区党工委副书记、管委会主任,主持管委会全面工作',\n",
       "  {'right': [{'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汉族',\n",
       "     'subject': '赵锦堂'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1965年2月6日',\n",
       "     'subject': '赵锦堂'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '黑龙江哈尔滨市阿城区',\n",
       "     'subject': '赵锦堂',\n",
       "     'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '中国',\n",
       "     'subject': '赵锦堂',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《阳光总在风雨后》是陈佳明作词作曲，吴庆隆编曲，许美静演唱的一首歌曲，收录在专辑《都是夜归人》中',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '许美静',\n",
       "     'subject': '阳光总在风雨后'},\n",
       "    {'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '都是夜归人',\n",
       "     'subject': '阳光总在风雨后'},\n",
       "    {'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '陈佳明',\n",
       "     'subject': '阳光总在风雨后'}],\n",
       "   'loss': [{'predicate': '作词',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '陈佳明',\n",
       "     'subject': '阳光总在风雨后'}],\n",
       "   'wrong': []}),\n",
       " ('人物简介崔占玲，女，1968 年 出生',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1968',\n",
       "     'subject': '崔占玲'}],\n",
       "   'wrong': [{'object': '1968 年',\n",
       "     'subject': '崔占玲',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('中文名：伊雷什·克姆博·埃科科外文名：Ekoko国籍：民主刚果出生地：金沙萨出生日期：1988-01-08身高：178厘米体重：75公斤运动项目：足球所属运动队：雷恩足球俱乐部惯用脚：右脚',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '金沙萨',\n",
       "     'subject': '埃科科'},\n",
       "    {'predicate': '身高',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '178厘米',\n",
       "     'subject': '埃科科'},\n",
       "    {'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '民主刚果',\n",
       "     'subject': '埃科科'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1988-01-08',\n",
       "     'subject': '埃科科'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '民主刚果',\n",
       "     'subject': '博·',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '金沙萨',\n",
       "     'subject': '博·',\n",
       "     'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '1988-01-08',\n",
       "     'subject': '博·',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '178厘米',\n",
       "     'subject': '博·',\n",
       "     'predicate': '身高',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('（《鲁迅致许广平》）天热不能做事，打牌消遣',\n",
       "  {'right': [{'predicate': '丈夫',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '鲁迅',\n",
       "     'subject': '许广平'},\n",
       "    {'predicate': '妻子',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '许广平',\n",
       "     'subject': '鲁迅'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '鲁迅',\n",
       "     'subject': '致',\n",
       "     'predicate': '丈夫',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '许广平',\n",
       "     'subject': '致',\n",
       "     'predicate': '妻子',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《蓝鸿文自选集》是2007年中国人民大学出版社出版的图书，作者是蓝鸿文',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '蓝鸿文',\n",
       "     'subject': '蓝鸿文自选集'},\n",
       "    {'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国人民大学',\n",
       "     'subject': '蓝鸿文自选集'}],\n",
       "   'wrong': [{'object': '中国人民大学出版社',\n",
       "     'subject': '蓝鸿文自选集',\n",
       "     'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《咱们穿越吧》十位固定成员是沈腾、宋小宝、黄小蕾、海陆、于小彤、金圣柱、张涵予、杨旭文（第一季）、张卫健、杨千嬅（第二季）',\n",
       "  {'right': [{'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '于小彤',\n",
       "     'subject': '咱们穿越吧'},\n",
       "    {'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '张涵予',\n",
       "     'subject': '咱们穿越吧'},\n",
       "    {'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '杨旭文',\n",
       "     'subject': '咱们穿越吧'},\n",
       "    {'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '黄小蕾',\n",
       "     'subject': '咱们穿越吧'},\n",
       "    {'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '宋小宝',\n",
       "     'subject': '咱们穿越吧'},\n",
       "    {'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '金圣柱',\n",
       "     'subject': '咱们穿越吧'},\n",
       "    {'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '海陆',\n",
       "     'subject': '咱们穿越吧'},\n",
       "    {'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '沈腾',\n",
       "     'subject': '咱们穿越吧'},\n",
       "    {'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '张卫健',\n",
       "     'subject': '咱们穿越吧'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '杨千嬅',\n",
       "     'subject': '咱们穿越吧',\n",
       "     'predicate': '嘉宾',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《上海滩》是刘德华的音乐作品，黄沾作曲，收录在《【歌单】酷我热门单曲合辑》专辑中',\n",
       "  {'right': [{'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '黄沾',\n",
       "     'subject': '上海滩'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '刘德华',\n",
       "     'subject': '上海滩',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '【歌单】酷我热门单曲合辑',\n",
       "     'subject': '上海滩',\n",
       "     'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('孙雪兵，男，汉族，1985年3月出生，黑龙江大庆市人，中共党员，2008年7月毕业于广西工学院，本科学历，助理工程师',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '黑龙江大庆市',\n",
       "     'subject': '孙雪兵'},\n",
       "    {'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汉族',\n",
       "     'subject': '孙雪兵'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1985年3月',\n",
       "     'subject': '孙雪兵'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '广西工学院',\n",
       "     'subject': '孙雪兵',\n",
       "     'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《余兴节目》是首由张宇作曲演唱，邬裕康作词的歌曲，收录于专辑《不甘寂寞》',\n",
       "  {'right': [{'predicate': '作词',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '邬裕康',\n",
       "     'subject': '余兴节目'},\n",
       "    {'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '不甘寂寞',\n",
       "     'subject': '余兴节目'}],\n",
       "   'loss': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '张宇',\n",
       "     'subject': '余兴节目'}],\n",
       "   'wrong': [{'object': '张宇',\n",
       "     'subject': '余兴节目',\n",
       "     'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('个人信息李林教授（1954- ），男，出生于江西萍乡，文学硕士',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '江西萍乡',\n",
       "     'subject': '李林'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '1954',\n",
       "     'subject': '李林',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('九肚鱼（Harpodon nehereus ），学名龙头鱼，属硬骨鱼纲、灯笼鱼目、狗母鱼科、龙头鱼属',\n",
       "  {'right': [{'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '灯笼鱼目',\n",
       "     'subject': '九肚鱼'}],\n",
       "   'loss': [{'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '灯笼鱼目',\n",
       "     'subject': '龙头鱼'}],\n",
       "   'wrong': [{'object': '灯笼鱼目',\n",
       "     'subject': '狗母鱼',\n",
       "     'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《时候尚早》出自蓝奕邦的专辑《蓝》中的一首歌，发行于2008年7月30日',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '蓝奕邦',\n",
       "     'subject': '时候尚早'}],\n",
       "   'loss': [{'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '蓝奕邦',\n",
       "     'subject': '时候尚早'},\n",
       "    {'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '《蓝》',\n",
       "     'subject': '时候尚早'}],\n",
       "   'wrong': [{'object': '蓝',\n",
       "     'subject': '时候尚早',\n",
       "     'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('彭佳慧《鹿港小镇》（原唱：罗大佑）这首歌应该算是罗大佑最早的、最深刻的政治歌曲之一',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '罗大佑',\n",
       "     'subject': '鹿港小镇'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '彭佳慧',\n",
       "     'subject': '鹿港小镇',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《王晓明心情童话绘本·爱忘事的熊爷爷》是著名童书画家兼作家王晓明先生的作品精选集，收入《蛤蟆的香格里拉》《胖萝卜生病》《河马喝咖啡》《魔法糖》《虎斑馒头》《雪夜蜗牛》《爱忘事的熊爷爷》等作品',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '王晓明',\n",
       "     'subject': '王晓明心情童话绘本·爱忘事的熊爷爷'}],\n",
       "   'wrong': [{'object': '王晓明',\n",
       "     'subject': '爱忘事的熊爷爷',\n",
       "     'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('司马昭的哥哥是司马师，是司马家族的长子，一母同胞的兄弟，司马懿有九个儿子，唯独司马师和司马昭能力出众，司马懿是三国时期著名的政治家与军事家，历经曹家几代帝王，司马懿才能出众，又非常谨慎，曹操觉得这是个人才，召见时发现司马懿有“鹰眼狼顾”之像，为此非常顾忌他，但司马懿与曹丕交好，曹丕常为他说话，司马懿从此做事更加勤勉谨慎，曹操才放下心来，这两个儿子性情非常随司马懿，尤其的有大略，善隐忍，但小儿子司马昭还是不够沉稳，司马懿最喜欢的就是大儿子司马师',\n",
       "  {'right': [{'predicate': '朝代',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '三国',\n",
       "     'subject': '司马昭'}],\n",
       "   'loss': [{'predicate': '父亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '司马懿',\n",
       "     'subject': '司马昭'},\n",
       "    {'predicate': '朝代',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '三国',\n",
       "     'subject': '曹丕'}],\n",
       "   'wrong': [{'object': '三国',\n",
       "     'subject': '司马师',\n",
       "     'predicate': '朝代',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '三国',\n",
       "     'subject': '司马懿',\n",
       "     'predicate': '朝代',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('张韶涵从《寓言》到天《欧若拉》，再到《潘朵拉》，张韶涵在亚洲歌坛独树一帜地开创出属于自己的音乐风格，她具有清亮且童真的声音、甜美且个性的外形，而在她的身上则有一种和她声音共同的特质：顽强、富有张力，充满执着',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '张韶涵',\n",
       "     'subject': '寓言'},\n",
       "    {'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '张韶涵',\n",
       "     'subject': '欧若拉'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '张韶涵',\n",
       "     'subject': '潘朵拉',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《添丁发财》是2009年梁来玲、林美娜、罗温温执导电视剧，由朱厚任主演',\n",
       "  {'right': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '朱厚任',\n",
       "     'subject': '添丁发财'},\n",
       "    {'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '梁来玲',\n",
       "     'subject': '添丁发财'},\n",
       "    {'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '林美娜',\n",
       "     'subject': '添丁发财'},\n",
       "    {'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '罗温温',\n",
       "     'subject': '添丁发财'}],\n",
       "   'loss': [{'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '2009年',\n",
       "     'subject': '添丁发财'}],\n",
       "   'wrong': []}),\n",
       " ('五度在除夕登上央视春晚的周杰伦，今年他化身魔术师表演热曲《告白气球》，唱完变成泰迪熊消失在舞台上，获得网友一致好评，收视率近期出炉，根据媒体报导，周董表演的桥段在当晚央视春晚的网络收视中拿下收视冠军，超过王菲和那英合体演唱',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '周杰伦',\n",
       "     'subject': '告白气球'}],\n",
       "   'wrong': [{'object': '周杰伦',\n",
       "     'subject': '告白气球',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('最强大的佛法——一切皆空：电视剧中康熙皇帝的父亲顺治皇帝由于爱妃离世，悲痛欲绝，转修佛法',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '父亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '顺治',\n",
       "     'subject': '康熙皇帝'}],\n",
       "   'wrong': [{'object': '顺治皇帝',\n",
       "     'subject': '康熙皇帝',\n",
       "     'predicate': '父亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('我们都很羡慕她和老公这么幸福，两个宝贝也这么漂亮第三位：赵千紫赵千紫，毕业于解放军艺术学院表演系，中国内地女演员',\n",
       "  {'right': [{'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '解放军艺术学院',\n",
       "     'subject': '赵千紫'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '中国',\n",
       "     'subject': '赵千紫',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《白白的》是张韶涵的音乐作品，李焯雄作曲，收录在《第5季》专辑中',\n",
       "  {'right': [{'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '第5季',\n",
       "     'subject': '白白的'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '张韶涵',\n",
       "     'subject': '白白的',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '李焯雄',\n",
       "     'subject': '白白的',\n",
       "     'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('而之后她也拍摄过很多的作品，但是名气也没有钱的大，而且是真正让人印象深刻的，则是在去年年底和张一山和共同出演的《柒个我》，在剧中蔡文静是当之无愧的女一号，也受到了很多的关注，在这部剧的精彩演出中，我们也看到蔡文静，近几年的演技也是非常有进展，虽然说还有些地方被人吐槽傻白甜，但是不得不说，这部翻拍自韩剧的《杀了我，治愈我》的电视剧，让蔡文静走向了新的高度',\n",
       "  {'right': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '蔡文静',\n",
       "     'subject': '柒个我'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '张一山',\n",
       "     'subject': '柒个我'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '蔡文静',\n",
       "     'subject': '杀了我，治愈我',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '杀了我，治愈我',\n",
       "     'subject': '柒个我',\n",
       "     'predicate': '改编自',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《零点出击》是香港电视广播有限公司于1990年出品的25集电视连续剧，主要演员有温兆伦、杨宝玲、谢宁、蔡嘉利、胡美仪、周文桦等',\n",
       "  {'right': [{'predicate': '出品公司',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '香港电视广播有限公司',\n",
       "     'subject': '零点出击'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '杨宝玲',\n",
       "     'subject': '零点出击'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '温兆伦',\n",
       "     'subject': '零点出击'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '周文桦',\n",
       "     'subject': '零点出击'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '蔡嘉利',\n",
       "     'subject': '零点出击'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '谢宁',\n",
       "     'subject': '零点出击'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '胡美仪',\n",
       "     'subject': '零点出击'}],\n",
       "   'loss': [{'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1990年',\n",
       "     'subject': '零点出击'}],\n",
       "   'wrong': []}),\n",
       " ('中国4大新生代男歌手：第一，周杰伦，凭借歌曲《青花瓷》获得第19届金曲奖最佳作曲人奖',\n",
       "  {'right': [{'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '周杰伦',\n",
       "     'subject': '青花瓷'}],\n",
       "   'loss': [{'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '周杰伦',\n",
       "     'subject': '青花瓷'}],\n",
       "   'wrong': []}),\n",
       " ('《竺可桢全集第17卷》是2009年出版的图书，作者是竺可桢',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '竺可桢',\n",
       "     'subject': '竺可桢全集第17卷'}],\n",
       "   'wrong': []}),\n",
       " ('2.阿甘正传《阿甘正传》是由罗伯特·泽米吉斯执导的电影，由汤姆·汉克斯、罗宾·怀特等人主演，于1994年7月6日在美国上映',\n",
       "  {'right': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汤姆·汉克斯',\n",
       "     'subject': '阿甘正传'},\n",
       "    {'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '罗伯特·泽米吉斯',\n",
       "     'subject': '阿甘正传'}],\n",
       "   'loss': [{'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1994年',\n",
       "     'subject': '阿甘正传'}],\n",
       "   'wrong': [{'object': '罗宾·怀特',\n",
       "     'subject': '阿甘正传',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '1994年7月6日',\n",
       "     'subject': '阿甘正传',\n",
       "     'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('幕后花絮2004年12月2日至2005年1月20日CCTV-8每晚10点“每日佳艺”年度特别奉献哥伦比亚电视连续剧《隐秘的激情》',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '2004年',\n",
       "     'subject': '隐秘的激情'}],\n",
       "   'wrong': [{'object': '2004年12月2日',\n",
       "     'subject': '隐秘的激情',\n",
       "     'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '哥伦比亚电视',\n",
       "     'subject': '隐秘的激情',\n",
       "     'predicate': '出品公司',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《铁翼雄风》，又称《翼》（Wings），是派拉蒙出品的战争爱情电影，由威廉·A·韦尔曼执导，克拉拉·鲍、查尔斯·巴德·罗杰斯等主演，于1927年在美国上映',\n",
       "  {'right': [{'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '威廉·a·韦尔曼',\n",
       "     'subject': '铁翼雄风'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '查尔斯·巴德·罗杰斯',\n",
       "     'subject': '铁翼雄风'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '克拉拉·鲍',\n",
       "     'subject': '铁翼雄风'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '1927年',\n",
       "     'subject': '铁翼雄风',\n",
       "     'predicate': '上映时间',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('多鳞霞蝶鱼（Hemitaurichthys polylepis），又称银斑蝶鱼，俗名霞蝶，为辐鳍鱼纲鲈形目蝴蝶鱼科的其中一种',\n",
       "  {'right': [{'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '鲈形目',\n",
       "     'subject': '银斑蝶鱼'},\n",
       "    {'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '鲈形目',\n",
       "     'subject': '多鳞霞蝶鱼'}],\n",
       "   'loss': [{'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '鲈形目',\n",
       "     'subject': '蝴蝶鱼科'}],\n",
       "   'wrong': []}),\n",
       " ('同年，朱丹还与华少、左岩、沈涛共同主持了歌唱慈善互动栏目《娱乐星空》第一季之《爱唱才会赢》11',\n",
       "  {'right': [{'predicate': '主持人',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '朱丹',\n",
       "     'subject': '爱唱才会赢'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '朱丹',\n",
       "     'subject': '娱乐星空',\n",
       "     'predicate': '主持人',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('当晚，古约翰根据加拿大长老会大会的授权，成立了河南省北部的第一个长老会',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '加拿大',\n",
       "     'subject': '古约翰'}],\n",
       "   'wrong': [{'object': '拿大',\n",
       "     'subject': '古约翰',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('提起香港电影《喜剧之王》《少林足球》《功夫》《长江七号》《美人鱼》，就不得不想起了一个名字：周星驰',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '周星驰',\n",
       "     'subject': '少林足球'}],\n",
       "   'wrong': [{'object': '周星驰',\n",
       "     'subject': '喜剧之王',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《东镇女巫》是由乔治·米勒执导的恐怖、奇幻、惊悚、喜剧片，杰克·尼科尔森、苏珊·萨兰登参加演出',\n",
       "  {'right': [{'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '乔治·米勒',\n",
       "     'subject': '东镇女巫'},\n",
       "    {'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '杰克·尼科尔森',\n",
       "     'subject': '东镇女巫'}],\n",
       "   'loss': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '苏珊·萨兰登',\n",
       "     'subject': '东镇女巫'}],\n",
       "   'wrong': [{'object': '苏珊·',\n",
       "     'subject': '东镇女巫',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '兰登',\n",
       "     'subject': '东镇女巫',\n",
       "     'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('林月如：李忆如自出生失去母亲赵灵儿照料起，由林月如抚养',\n",
       "  {'right': [{'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '赵灵儿',\n",
       "     'subject': '李忆如'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '林月如',\n",
       "     'subject': '李忆如',\n",
       "     'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '赵灵儿',\n",
       "     'subject': '林月如',\n",
       "     'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('小型锐额溞（拉丁名：Alonella exigua），属 枝角目 ，盘肠溞科，甲壳纲动物',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '枝角目',\n",
       "     'subject': '小型锐额溞'}],\n",
       "   'wrong': [{'object': '枝角目',\n",
       "     'subject': '小型锐额[UNK]',\n",
       "     'predicate': '目',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('美国罗门哈斯公司成立于1909年，总公司位于宾西法尼亚州的费城',\n",
       "  {'right': [{'predicate': '成立日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1909年',\n",
       "     'subject': '罗门哈斯'}],\n",
       "   'loss': [{'predicate': '总部地点',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '宾西法尼亚州的费城',\n",
       "     'subject': '罗门哈斯'}],\n",
       "   'wrong': []}),\n",
       " ('刘学勃，男，汉族，1926年生，河北蠡县人，自10岁习武练功，曾拜当地著名拳师张永和为师，北京解放后调入北京工作，又拜著名武术家“花鞭”吴斌楼老师习武练功，习武60余载',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '河北蠡县',\n",
       "     'subject': '刘学勃'},\n",
       "    {'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汉族',\n",
       "     'subject': '刘学勃'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1926年',\n",
       "     'subject': '刘学勃'}],\n",
       "   'loss': [{'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '汉族',\n",
       "     'subject': '张永和'}],\n",
       "   'wrong': []}),\n",
       " ('简介王赞(号木瓜子）1959年5月生于江苏扬州，1  年中国美术学院中国画系研究生毕业，获硕士学位',\n",
       "  {'right': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '江苏扬州',\n",
       "     'subject': '王赞'},\n",
       "    {'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国美术学院',\n",
       "     'subject': '王赞'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1959年5月',\n",
       "     'subject': '王赞'}],\n",
       "   'loss': [{'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国',\n",
       "     'subject': '王赞'}],\n",
       "   'wrong': []}),\n",
       " ('基本信息歌曲：情丝风缕  歌手 ：杨钰莹  作词：吴颂今  作曲：韩乘光歌曲介绍《情丝几缕》是杨钰莹首张专辑《为爱祝福》里的一首歌',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '韩乘光',\n",
       "     'subject': '情丝几缕'},\n",
       "    {'predicate': '作词',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '吴颂今',\n",
       "     'subject': '情丝几缕'},\n",
       "    {'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '杨钰莹',\n",
       "     'subject': '情丝几缕'},\n",
       "    {'predicate': '所属专辑',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '为爱祝福',\n",
       "     'subject': '情丝几缕'}],\n",
       "   'wrong': [{'object': '杨钰莹',\n",
       "     'subject': '情丝风缕',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '杨钰莹',\n",
       "     'subject': '为爱祝福',\n",
       "     'predicate': '歌手',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '吴颂今',\n",
       "     'subject': '情丝风缕',\n",
       "     'predicate': '作词',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '吴颂今',\n",
       "     'subject': '为爱祝福',\n",
       "     'predicate': '作词',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '韩乘光',\n",
       "     'subject': '情丝风缕',\n",
       "     'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '韩乘光',\n",
       "     'subject': '为爱祝福',\n",
       "     'predicate': '作曲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('欧志云  1939年1月生，广东中山人，毕业于华南工学院化机专业本科，高级工程师，曾任中国科学院广州能源研究所副处长，现已退休',\n",
       "  {'right': [{'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '华南工学院',\n",
       "     'subject': '欧志云'},\n",
       "    {'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '广东中山',\n",
       "     'subject': '欧志云'},\n",
       "    {'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '1939年1月',\n",
       "     'subject': '欧志云'}],\n",
       "   'loss': [{'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国',\n",
       "     'subject': '欧志云'}],\n",
       "   'wrong': [{'object': '国',\n",
       "     'subject': '欧志云',\n",
       "     'predicate': '民族',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('总监制：陈宏 李培森内容介绍《在片场》的创作班底集结了橙天娱乐、央视数字频道及中国教育电视台等业内资深人士，每期内容框定一部电视剧，或一部电影，或一个相关的影视主题，深度揭秘片场风云',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国',\n",
       "     'subject': '陈宏'},\n",
       "    {'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '中国',\n",
       "     'subject': '李培森'},\n",
       "    {'predicate': '制片人',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '陈宏',\n",
       "     'subject': '在片场'}],\n",
       "   'wrong': []}),\n",
       " ('刘恺威带女儿小糯米吃开年饭 未见杨幂同行据香港媒体报道，女星杨幂和刘恺威结婚约四年，夫妇虽长期分隔异地各自吸金，依然不时合体陪女，早前刘丹曾透露杨幂农历新年会回港过节，但连日新春佳节却未见她踪影',\n",
       "  {'right': [{'predicate': '父亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '刘恺威',\n",
       "     'subject': '小糯米'},\n",
       "    {'predicate': '丈夫',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '刘恺威',\n",
       "     'subject': '杨幂'},\n",
       "    {'predicate': '妻子',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '杨幂',\n",
       "     'subject': '刘恺威'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '杨幂',\n",
       "     'subject': '小糯米',\n",
       "     'predicate': '母亲',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('吴会期，字行可，号子官，明朝工部郎中',\n",
       "  {'right': [{'predicate': '号',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '子官',\n",
       "     'subject': '吴会期'},\n",
       "    {'predicate': '字',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '行可',\n",
       "     'subject': '吴会期'}],\n",
       "   'loss': [{'predicate': '朝代',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '明朝',\n",
       "     'subject': '吴会期'}],\n",
       "   'wrong': []}),\n",
       " ('王洪九(1906—1979），原名王士范，山东省临沂市沙沟崖村人，汉奸，先后就读于山东省立临沂中学、济南军官学校',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '山东省临沂市',\n",
       "     'subject': '王洪九'},\n",
       "    {'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '山东省立临沂中学',\n",
       "     'subject': '王洪九'},\n",
       "    {'predicate': '毕业院校',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '济南军官学校',\n",
       "     'subject': '王洪九'}],\n",
       "   'wrong': [{'object': '1906',\n",
       "     'subject': '王洪九',\n",
       "     'predicate': '出生日期',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '山东省临沂市沙沟崖村',\n",
       "     'subject': '王洪九',\n",
       "     'predicate': '出生地',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('不过拍《北京爱情故事》之前陈思诚就看过佟丽娅演的戏，他觉得佟丽娅很漂亮，演技不错',\n",
       "  {'right': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '佟丽娅',\n",
       "     'subject': '北京爱情故事'}],\n",
       "   'loss': [],\n",
       "   'wrong': [{'object': '陈思诚',\n",
       "     'subject': '北京爱情故事',\n",
       "     'predicate': '导演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('《苏州商会档案丛编第二辑》是2012年华中师范大学出版社出版的图书，作者是马敏、祖苏、肖芃',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '肖芃',\n",
       "     'subject': '苏州商会档案丛编'},\n",
       "    {'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '华中师范大学出版社',\n",
       "     'subject': '苏州商会档案丛编'},\n",
       "    {'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '马敏',\n",
       "     'subject': '苏州商会档案丛编'},\n",
       "    {'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '祖苏',\n",
       "     'subject': '苏州商会档案丛编'}],\n",
       "   'wrong': [{'object': '华中师范大学出版社',\n",
       "     'subject': '苏州商会档案丛编第二辑',\n",
       "     'predicate': '出版社',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '马敏',\n",
       "     'subject': '苏州商会档案丛编第二辑',\n",
       "     'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '祖苏',\n",
       "     'subject': '苏州商会档案丛编第二辑',\n",
       "     'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '肖芃',\n",
       "     'subject': '苏州商会档案丛编第二辑',\n",
       "     'predicate': '作者',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]}),\n",
       " ('耳边放着由日本作曲梅林茂为2001年的电影《阴阳师》创作的神秘古老的音乐，闭眼就是狂言表演家野村万斋饰演的日本平安时代首屈一指的阴阳师安倍晴明（Abe no Seimei ）那副机敏而从容、锐利而洒脱的模样——这是平昌冬奥花样滑冰项目男子单人滑赛场上最绝美的自由滑节目《晴明》（SEI MEI），它也助日本选手羽生结弦（Yuzuru Hanyu）斩获了继索契冬奥金牌之后又一次平昌冬奥花滑男单金牌',\n",
       "  {'right': [],\n",
       "   'loss': [{'predicate': '主演',\n",
       "     'object_type': None,\n",
       "     'subject_type': None,\n",
       "     'object': '野村万斋',\n",
       "     'subject': '阴阳师'}],\n",
       "   'wrong': [{'object': '日本',\n",
       "     'subject': '梅林茂',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '日本',\n",
       "     'subject': '倍晴',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None},\n",
       "    {'object': '日本',\n",
       "     'subject': '羽生结弦',\n",
       "     'predicate': '国籍',\n",
       "     'object_type': None,\n",
       "     'subject_type': None}]})]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "wrong_case[-100:]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "text = '《下班抓紧谈恋爱》是万达影视传媒有限公司、上海强胜影视文化传媒有限公司联合出品的的都市情感剧，由万洋执导，朱雨辰、杜海涛、徐黄丽、杨淇等主演1'\n",
    "text = text.strip().replace(' ', '$')\n",
    "word_list = tokenizer_n.tokenize(text)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(10, 19)"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_positions(word_list, '万达影视传媒有限公司')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['万', '达', '影', '视', '传', '媒', '有', '限', '公', '司']"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "word_list[10:20]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
